package com.woniu.microworkorderserver.feignone;


import com.woniu.microcommonsserver.param.ResponseMsg;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


@RestController
@RequestMapping("/feign1")
public class FeignController1 {


    @Resource
    private BuildServerFeign buildServerFeign;


    @GetMapping(value = "/findBandS",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseMsg findAll(){

        System.out.println("进入feign");
        ResponseMsg lili = buildServerFeign.findAll();

        System.out.println("jojo");

        System.out.println(lili);


        int i = 1;
        return lili;
    }





}
